﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 钉钉部门
    /// </summary>
    public class DD_DepartmentDTO
    {
        public int errcode { get; set; }
        public string errmsg { get; set; }
        public string request_id { get; set; }
        public List<Department> result { get; set; }
        public class Department
        {
            public string ID { get; set; }
            public bool auto_add_user { get; set; }
            public bool create_dept_group { get; set; }
            /// <summary>
            /// 部门编码
            /// </summary>
            public long dept_id { get; set; }
            public string ext { get; set; }
            /// <summary>
            /// 部门名称
            /// </summary>
            public string name { get; set; }
            /// <summary>
            /// 上级部门
            /// </summary>
            public string parent_id { get; set; }
        }
    }
   
}
